Skip to content

Conversation

@luqmana
Copy link
Contributor

@luqmana luqmana commented Dec 9, 2012

#723 - Add a deprecated items check to lint.

#[deprecated]
fn foo() {
    ...
}

#[deprecated = "use blah instead"]
fn bar() {
    ...
}

@catamorphism
Copy link
Contributor

Can you include a test case (or two) testing what the attribute you've added? Thanks!

catamorphism added a commit that referenced this pull request Dec 11, 2012
@catamorphism catamorphism merged commit f675b97 into rust-lang:incoming Dec 11, 2012
@catamorphism
Copy link
Contributor

Merged, thanks!

catamorphism added a commit that referenced this pull request Dec 11, 2012
This reverts commit f675b97, reversing
changes made to e7dd3af.
@catamorphism
Copy link
Contributor

Sorry, I had to back this out. It's not quite doing the right thing: you want to be checking for uses of deprecated items. Also, the test case didn't have an error pattern (look for //~ ERROR in existing compile-fail tests for examples of that). My fault for not looking at this more carefully. Feel free to submit an improved patch (or ask for advice on IRC).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants